<?php
include  __DIR__.'/common/common.php';//添加
$title=addslashes($_POST['title']);
$content=addslashes($_POST['content']);
$name_id=(int)($_POST['name_id']);
$sql="INSERT INTO `baidu`.`article` (`title`,`content`,`name_id`)
 VALUES ('$title','$content', '$name_id')";
$bool=mysqli_query($mysql,$sql);
//var_export($_POST);